package cn.sxt.seata.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @description: --
 * @author：Bing
 * @date：2021/4/19 15:32
 * @version：1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Storage implements Serializable {
    private Long id;

    /**
    * 产品id
    */
    private Long productId;

    /**
    * 总库存
    */
    private Integer total;

    /**
    * 已用库存
    */
    private Integer used;

    /**
    * 剩余库存
    */
    private Integer residue;

    private static final long serialVersionUID = 1L;
}